package com.anysoft.me.config;

/**
 * Created by lty on 2018/1/8.
 * 服务器环境配置
 */

public class ServiceConfig {

    public ServiceConfig() {
    }

    private static volatile ServiceConfig instance = null;

    public static ServiceConfig getInstance() {
        if (instance == null) {
            synchronized (ServiceConfig.class) {
                if (instance == null) {
                    instance = new ServiceConfig();
                }
            }
        }
        return instance;
    }

    /**
     * 是否显示log
     */
    public static boolean IS_SHOW_LOG = true;
    /*
      * 是否是测试
      */
    public static boolean isQA = true;
    /**
     * 是否是预生产
     */
    public static boolean isFinalQA = true;

    /**
     * 是否通过后台配置测试ip地址
     */
    public static boolean antoConfigIPAddress = true;

    public static String NEW_ICBC_URL = "icbcFund309";

    public String TestIP = "http://172.28.11.76:7006";//业务测试环境

    /**
     * 银联插件化境
     */
    public static String CHINA_PAY_ENVIRONMENT = isQA ? "TEST" : "PRODUCT";

    public static String FINAL_HOST_URL = isFinalQA ? "https://wx.icbccs.com.cn/GYRXXJKX/" :
            "https://ydxjb.icbccs.com.cn/GYRXXJKX/";
    public static String FINAL_HOST_URL_ZX = isFinalQA ? "https://wx.icbccs.com.cn" :
            "https://ydxjb.icbccs.com.cn";

    public static String FINAL_HOST_WEB_URL_HEADER = isFinalQA ? "https://wx.icbccs.com.cn/GY_H5/" + NEW_ICBC_URL + "/" :
            "https://ydxjb.icbccs.com.cn/GY_H5/" + NEW_ICBC_URL + "/";
}
